<?	 

class Test extends Action{	

	
	
//	
	public function execute(){
	
		$str= '传入的参数值为<font color="red"> '.$_GET[0].' 和 '.$_GET[1].' </font>通过$_GET[0]，$_GET[1]取值<br/><br/>';
		$str .="请在Config.php里设置URLMode值为1,如:<font color='green'>'URLMode' => 1</font><br/><br/>";
		$str .= '此页面将会有报错，Config.php配置URLMode默认值为0';	
		$this->assign('str',$str);
		$this->show('test'); 
	}
	
//			
	public function url(){		
		$str = '此模式无需设置，当前访问路径为：<font color="green">'.$_SERVER['REQUEST_URI']."</font>  <br/> GET['id']取值为<font color='red'>".$_GET['id']."</font>";	
		$this->assign('str',$str);		
		$this->show('test'); 
	}
//	
	public function version(){
		 $this->show('version'); 	 		 
	}
//	
	public function cookie_session(){
	
		setcookie('user','test_cookie');
		$_SESSION ["UID"] = 'test_session';
		$this->location('Test/_cookie_session');
			
	}
	public function _cookie_session(){
		$str='这是输出值：'.$_COOKIE['user'].'<br>'.$_SESSION['UID'];
		$this->assign('str',$str);
		$this->show('test');
			
	}
//	


 
}//
